from django.db import models

class Computer(models.Model):
    comID = models.CharField(max_length=30)
    status = models.BooleanField(default=True)
    
    def __unicode__(self):
	return u'%s' % (self.comID)
    
class Inform(models.Model):
    computer = models.ForeignKey(Computer)
    symptom = models.TextField(blank=True)
    informDate = models.DateTimeField()
    fixed = models.BooleanField(default=False)
    fixedDate = models.DateTimeField()
    comment = models.TextField()


